﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.DisjoinProForOutShop.IView;
using MINERP.BLL.DisjoinProForOutShop;

namespace MINERP.DisjoinProForOutShop.Presenter
{
    public class FrmSelectInfoPresenter 
    {
        IFrmSelectInfo _view;
        DisJoinBLL2_Fuji _bll;
        public FrmSelectInfoPresenter(IFrmSelectInfo iView)
        {
            _view = iView;
            _bll = new DisJoinBLL2_Fuji();
        }
        public void init()
        {
            _view.BangDingShop(_bll.GetAllShop());
            if (_view.StartTime == DateTime.MinValue && _view.EndTime == DateTime.MinValue)
            {
                Display();
            }
        }
        public void Display()
        {
            _view.DisplayListOrderView(_bll.GetView(_view.CurrShopId,_view.StartTime,_view.EndTime,_view.CurrentGridType));
        }
        public void initTask(int techid)
        {
            
                DisplayTask(techid);
           
        }
        public void DisplayTask(int techid)
        {
            _view.DisplayListOrderView(_bll.GetTastView(techid, _view.CurrentGridType));
        }
    }
}
